package com.aitaoxue.palx.ui;

import com.aitaoxue.palx.R;
import com.aitaoxue.palx.fragment.AiTaoXueFragment;
import com.aitaoxue.palx.fragment.IMFragment;
import com.aitaoxue.palx.fragment.LogFragment;
import com.aitaoxue.palx.fragment.MainFragment;
import com.aitaoxue.palx.viewpagefragment.CourseViewPagerFragment;

/**
 * tabhost的具体属性
 * 
 * @author Administrator
 * 
 */
public enum MainTab {

	COURSE(1, R.string.main_tab_name_course, R.drawable.tab_icon_course,
			CourseViewPagerFragment.class), BLOG(2,
			R.string.main_tab_name_more, R.drawable.tab_icon_new,
			LogFragment.class), HOME(0, R.string.main_tab_name_home,
			R.drawable.tab_icon_home, MainFragment.class), IM(3,
			R.string.main_tab_name_im, R.drawable.tab_icon_im, IMFragment.class), SETTING(
			4, R.string.main_tab_name_setting, R.drawable.tab_icon_person,
			AiTaoXueFragment.class);

	private int idx;
	private int resName;
	private int resIcon;
	private Class<?> clz;

	private MainTab(int idx, int resName, int resIcon, Class<?> clz) {
		this.idx = idx;
		this.resName = resName;
		this.resIcon = resIcon;
		this.clz = clz;
	}

	public int getIdx() {
		return idx;
	}

	public void setIdx(int idx) {
		this.idx = idx;
	}

	public int getResName() {
		return resName;
	}

	public void setResName(int resName) {
		this.resName = resName;
	}

	public int getResIcon() {
		return resIcon;
	}

	public void setResIcon(int resIcon) {
		this.resIcon = resIcon;
	}

	public Class<?> getClz() {
		return clz;
	}

	public void setClz(Class<?> clz) {
		this.clz = clz;
	}

}
